package com.htwx.dao;

import com.htwx.entity.SubmissionReport;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

public interface SubmissionReportDao {

   //查询已完成没有评论的
   public List<SubmissionReport>  findNotEvaluateById(@Param("wxId") String  wxId);

 //查询所有或指定状态的
 	public List<SubmissionReport> findSubmissionReportAll(@Param("status")Integer status);
   // 查询
    public List<SubmissionReport> findSubmissionReportByWxId(String wxId);

    //插入
    public Integer insertSubmissionReport(SubmissionReport submissionReport);

    //修改
    public Integer updateSubmissionReport(SubmissionReport submissionReport);

    //删除
    public Integer deleteSubmissionReport(@Param("reportId") Integer reportId);

    //插入评价
    public  Integer  updateEvaluate(SubmissionReport submissionReport);

    //获得未评价的总数
    public  Integer  findEvaluateCountById(@Param("wxId") String  wxId);
}
